﻿@model E5_KhuyenMaiVang.Models.CompanyView
           
@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Ajax.BeginForm("Edit", "Company", new AjaxOptions
    {
        InsertionMode = InsertionMode.Replace,
        HttpMethod = "POST",
        UpdateTargetId = "register"
    }))
{
<div class="left-content-box">
    <div class="title-content">CẬP NHẬT TÀI KHOẢN DOANH NGHIỆP</div>
    <div class="h1-bg"></div>
    <div class="validation">@Html.ValidationSummary(true)</div>

    
    <div id="register">
     <div class="register"> <h2> Thông tin doanh nghiệp </h2>
       <div class="row">
            <div class="left-row">@Html.LabelFor(model=>model.CompanyName)</div>
            <div class="input-row"> @Html.EditorFor(model=>model.CompanyName) @Html.ValidationMessageFor(model=>model.CompanyName)</div>
       </div>  
       <div class="row">
            <div class="left-row">@Html.LabelFor(model=>model.Address)</div>
            <div class="input-row"> @Html.EditorFor(model=>model.Address) @Html.ValidationMessageFor(model=>model.Address)</div>
       </div>  
       <div class="row">
            <div class="left-row">@Html.LabelFor(model=>model.Phone)</div>
            <div class="input-row"> @Html.EditorFor(model=>model.Phone) @Html.ValidationMessageFor(model=>model.Phone)</div>
       </div>       
         <div class="row">
            <div class="left-row">@Html.LabelFor(model=>model.Website)</div>
            <div class="input-row"> @Html.EditorFor(model=>model.Website) @Html.ValidationMessageFor(model=>model.Website)</div>
       </div>       
       
       <div class="row">
            <div class="left-row">@Html.LabelFor(model=>model.Taxcode)</div>
            <div class="input-row"> @Html.EditorFor(model=>model.Taxcode) @Html.ValidationMessageFor(model=>model.Taxcode)</div>
       </div>        
       <div class="row">
            <div class="left-row">@Html.LabelFor(model=>model.Decription)</div>
            <div class="input-row"> @Html.TextAreaFor(model=>model.Decription) @Html.ValidationMessageFor(model=>model.Decription)</div>  
        <!-- Hết thông tin doanh nghiep-->
        </div>
     </div>
     
        <div class="row">
                    <div class="midle">
                        <input class="submit-form" name="submit" value="Cập nhật" type="submit" /></div>
                    
        </div>
    </div>
    </div>

}
  <table width="100%">
</table>